﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebEntities;
using com.subb.WebInfo;
using com.subb.ProductInfo;

namespace WebUI.Areas.EN.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.ActMenu = "home";
            //获取首页推荐产品
            PP_RecomProductDAL rdal = new PP_RecomProductDAL();
            int ttlCount;
            List<PP_RecommendProduct> rprodList = rdal.GetAllRecomProduct(0, 18, out ttlCount, "EN");
            ViewBag.RecomProductList = rprodList;
            
            //获取首页滚动图片
            WI_IndexAdImgDAL mdal = new WI_IndexAdImgDAL();
            List<WI_IndexADImg> imgList = mdal.GetAllADImages();
            ViewBag.ADImgList = imgList;
            return View();
        }

        public ActionResult SiteMap()
        {
            return View();
        }
    }
}
